﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace ugrow_silverlight.Register
{
    public partial class Register_thranksubs : UserControl
    {
        private Brush color;
        public Register_thranksubs()
        {
            InitializeComponent();
            App.Current.Host.Content.Resized += new EventHandler(Content_Resized);
            color = tb_here.Foreground;
        }

        void Content_Resized(object sender, EventArgs e)
        {

            this.Width = App.Current.Host.Content.ActualWidth;
            this.Height = App.Current.Host.Content.ActualHeight;

        }

        private void tb_here_MouseEnter(object sender, MouseEventArgs e)
        {
            tb_here.Foreground = new SolidColorBrush(Colors.Red);
            Cursor = Cursors.Hand;
        }

        private void tb_here_MouseLeave(object sender, MouseEventArgs e)
        {
            tb_here.Foreground = color;
            Cursor = Cursors.Arrow;
        }

        private void tb_here_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            switch (MessageBox.Show("Are you sure do you want to unsubscribe? This operation cannot be undone.", "Unsubscribe", MessageBoxButton.OKCancel))
            {
                case MessageBoxResult.OK:
                    //PROCESS OK
                    break;
            }
        }
    }
}
